package com.g1.gzbooksingle.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.g1.gzbooksingle.model.DgCardSale;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* <p>
    * 卡券表 Mapper 接口
    * </p>
*
* @author admin
* @since 2021-10-12
*/
    @Mapper
    public interface DgCardSaleMapper extends BaseMapper<DgCardSale> {

    /**
     * 查询所有卡卷
     * @return 卡卷列表
     */
    @Select("SELECT id,name,achieve,reduce,image_path FROM dg_card_sale")
        public List<DgCardSale> selectAll();
    }
